//
//  VideoCollectionViewCell.m
//  HelpThePoor
//
//  Created by van7ish on 2016/12/6.
//  Copyright © 2016年 van7ish. All rights reserved.
//

#import "VideoCollectionViewCell.h"

@implementation VideoCollectionViewCell

- (UIImageView *)backImageView{
    if (!_backImageView) {
        _backImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, self.coverImageView.frame.size.height - HeightScale(30), self.coverImageView.frame.size.width, HeightScale(30))];
        _backImageView.image = ImageNamed(@"heiseijianbian");
    }
    return _backImageView;
}

- (UIImageView *)coverImageView{
    if (!_coverImageView) {
        _coverImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, self.frame.size.width, self.frame.size.height)];
        
    }
    return _coverImageView;
}

- (UILabel *)titleLabel{
    if (!_titleLabel) {
        _titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(2, self.coverImageView.frame.size.height - HeightScale(25), self.coverImageView.frame.size.width - 2, HeightScale(25))];
        _titleLabel.textColor = COLOR_WHITE;
        _titleLabel.font = FONTSIZE(15);
    }
    return _titleLabel;
}

- (void)layoutSubviews{
    [super layoutSubviews];
    
    [self.contentView addSubview:self.coverImageView];
    [self.contentView addSubview:self.backImageView];
    [self.contentView addSubview:self.titleLabel];
}


@end
